package comcksys.authserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import comcksys.authserver.entity.User;
import comcksys.authserver.mapper.UserMapper;
import comcksys.authserver.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: yxzhang23
 * @time: 2021/4/8
 */
@Service
public class IUserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserByUsername(String username) {
        return userMapper.getUserByUsername(username);
    }
}
